extends Node2D

var mac = null

func _ready():
	var api = Api.new()
	# 加载mac地址, 用于存档
	mac = Util.new().get_mac_address()
	api.updateOrCreate(self, mac, {
			"killCount": 0,
			"deathCount": 0,
			"moneyCount": 0,
			"winCount": 0
		},
		func (data):
			print(data.id)
	)
	
